<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品类型列表</title>
	<script type='text/javascript' src='http://localhost/GFshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/GFshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/GFshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/GFshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/GFshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/GFshop';
		WEB = 'http://localhost/GFshop/index.php';
		URL = 'http://localhost/GFshop/index.php/Admin/GoodsType/index';
		HDPHP = 'http://localhost/GFshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/GFshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/GFshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/GFshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/GFshop/index.php/Admin';
		CONTROL = 'http://localhost/GFshop/index.php/Admin/GoodsType';
		METH = 'http://localhost/GFshop/index.php/Admin/GoodsType/index';
		GROUP = 'http://localhost/GFshop/gf';
		TPL = 'http://localhost/GFshop/gf/GFshop/Admin/Tpl';
		CONTROLTPL = 'http://localhost/GFshop/gf/GFshop/Admin/Tpl/GoodsType';
		STATIC = 'http://localhost/GFshop/Static';
		PUBLIC = 'http://localhost/GFshop/gf/GFshop/Admin/Tpl/Public';
		HISTORY = 'http://localhost/GFshop/index.php/Admin/GoodsType/edit?id=2&name=T%E8%A1%AB';
		HTTPREFERER = 'http://localhost/GFshop/index.php/Admin/GoodsType/edit?id=2&name=T%E8%A1%AB';
</script>
</head>
<body>
	<div class="wrap">
				<div class="menu_list">
					<ul>
						<li>
							<a href="javascript:;" class="action">
								商品类型
							</a>
						</li>
						<li>
							<a href="<?php echo U('add');?>">
								添加类型
							</a>
						</li>
						<li>
							<a href="javascript:hd_ajax('<?php echo U(updateCache);?>')">
								更新缓存
							</a>
						</li>
					</ul>
				</div>
				<table class="table2 hd-form">
					<thead>
						<tr>
							<td class="w80">类型ID</td>
							<td>类型名称</td>
							<td class="w100">操作</td>
						</tr>
					</thead>
					<?php $hd["list"]["d"]["total"]=0;if(isset($data) && !empty($data)):$_id_d=0;$_index_d=0;$lastd=min(1000,count($data));
$hd["list"]["d"]["first"]=true;
$hd["list"]["d"]["last"]=false;
$_total_d=ceil($lastd/1);$hd["list"]["d"]["total"]=$_total_d;
$_data_d = array_slice($data,0,$lastd);
if(count($_data_d)==0):echo "";
else:
foreach($_data_d as $key=>$d):
if(($_id_d)%1==0):$_id_d++;else:$_id_d++;continue;endif;
$hd["list"]["d"]["index"]=++$_index_d;
if($_index_d>=$_total_d):$hd["list"]["d"]["last"]=true;endif;?>

						<tr>
							<td><?php echo $d['GF_gt_id'];?></td>
							<td><?php echo $d['GF_gt_name'];?></td>
							<td>
								<a href="<?php echo U('edit');?>?id=<?php echo $d['GF_gt_id'];?>&name=<?php echo $d['GF_gt_name'];?>">修改</a> |
								<a href="<?php echo U('del');?>?id=<?php echo $d['GF_gt_id'];?>">删除</a>
							</td>
						</tr>
					<?php $hd["list"]["d"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
				</table>
		</div>
		
</body>
</html>